
<div class="table-responsive">
        <table id="table" class="table table-striped table-bordered table-hover table-nowrap">
            <thead>
                <tr>
                    <th style="background-color: #ff9933">订单信息</th>
                    <th colspan="5" width="400">商品</th>
                    <th>规格</th>
                    <th>单价</th>
                    <th>数量</th>
                    <th>实付款</th>
                    <th>积分</th>
                </tr>
            </thead>
            <tbody>
                <tr style="background-color: #33ccff">
                    <td width="100" colspan="2">
<!--                        <input type="checkbox" id="selectAll" value="全选"> 全选-->
                        订单编号：{$row.order_sn}
                    </td>
                    <td colspan="9">创建时间：{$row.create_time|datetime}</td>
                </tr>
                {foreach name="OrderGoods" item="vo"}
                <tr>
                    <td width="100">
<!--                        <input type="checkbox" id="checkboxsuccess{$vo.id}" name="checkboxsuccess" value="{$vo.id}">{$vo.id}-->
<!--                        <button class="selectedsub">提交测试</button>-->
                        <img src="{if condition='$vo.order_goods.main_image'} {$vo.order_goods.main_image} {else /} {$vo.goods_image} {/if}" width="100px"></td>
                    <td colspan="5" style="white-space: normal;word-break: break-all; ">{$vo.goods_name}</td>
                    <td>{$vo.order_goods.spec_value_str  == '' ?  '无' : $vo.order_goods.spec_value_str}</td>
                    <td>{$vo.goods_price}</td>
                    <td>{$vo.goods_num}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.discounts}</td>
                </tr>
                {/foreach}
                <tr>
                    <td style="background-color: #ff9933">收货信息:</td>
                    <td class="goodsinfo">
                        <p>
                            <span id="deliv_province">{$row.province}</span>
                            <span id="deliv_city">{$row.city}</span>
                            <span id="deliv_district">{$row.district}</span>
                            <span id="deliv_address">{$row.address}</span>
                            <span id="deliv_name">{$row.name}</span>
                            <span id="deliv_mobile">{$row.mobile}</span>
                        </p>
                    </td>
                    <td width="40">
                        <a href="#" class="btn btn-primary btn-lg shaddress" data-name="goodsaddress" role="button">修改地址</a>
                    </td>
                    <td colspan="9"></td>

                </tr>
                <tr>
                    <td style="background-color: #ff9933">发货信息:</td>
                    <td>

                        <p>
                            <span id="fhdeliv_company"> {$row.deliveryaddress.company ? $row.deliveryaddress.company : ''}</span>
                            <span id="fhdeliv_province">
                                {$row.deliveryaddress.province ? $row.deliveryaddress.province : ''}
                            </span>
                            <span id="fhdeliv_city"> {$row.deliveryaddress.city ? $row.deliveryaddress.city : ''}</span>
                            <span id="fhdeliv_district">{$row.deliveryaddress.area ? $row.deliveryaddress.area : ''}</span>
                            <span id="fhdeliv_address">{$row.deliveryaddress.address ? $row.deliveryaddress.address : ''}</span>
                            <span id="fhdeliv_name">{$row.deliveryaddress.name ? $row.deliveryaddress.name : ''}</span>
                            <span id="fhdeliv_mobile">{$row.deliveryaddress.phone ? $row.deliveryaddress.phone : ''}</span>
                        </p>
                    </td>
                    <td width="40">
                        <a href="#" class="btn btn-primary btn-lg shaddress" data-name="userupaddress" role="button">设置发货地址</a>
                    </td>
                    <td colspan="9"></td>
                </tr>
                <tr>
                    <td style="background-color: #ff9933">退货信息:</td>
                    <td>
                        <p>
                            <span id="refunddeliv_company"> {$row.deliveryaddress.company ? $row.deliveryaddress.company : ''}</span>
                            <span id="refunddeliv_province">
                                {$row.refundaddress.province ? $row.refundaddress.province : ''}
                            </span>
                            <span id="refunddeliv_city"> {$row.refundaddress.city ? $row.refundaddress.city : ''}</span>
                            <span id="refunddeliv_district">{$row.refundaddress.area ? $row.refundaddress.area : ''}</span>
                            <span id="refunddeliv_address">{$row.refundaddress.address ? $row.refundaddress.address : ''}</span>
                            <span id="refunddeliv_name">{$row.refundaddress.name ? $row.refundaddress.name : ''}</span>
                            <span id="refunddeliv_mobile">{$row.refundaddress.phone ? $row.refundaddress.phone : ''}</span>
                        </p>
                    </td>
                    <td width="40">
                        <a href="#" class="btn btn-primary btn-lg shaddress" data-name="refundaddress" role="button">设置退货地址</a>
                    </td>
                    <td colspan="9"></td>
                </tr>
                <tr>
                    <td style="background-color: #ff9933">物流信息</td>
                    <td style=" vertical-align:middle;">
                        <select name="deliveryexpress" id="express" style="height: 26px;">
                            {foreach name="delivery_express_list" item="vo"}
                                <option value="{$vo.id}">{$vo.name}</option>
                            {/foreach}
                        </select>
                        <input type="text" name="orderno" id="orderno" placeholder="填写物流单号" value="">
                    </td>
                    <td width="40">
                        <a href="#" class="btn btn-primary btn-lg delivery" role="button">发货 </a>
                        <!--<a href="#" class="btn btn-primary btn-lg automatic_delivery" role="button">自动发货</a>-->
                    </td>
                    <td colspan="9" style="text-align: center">
                            <input type="radio" name="delivery_type" class="deliverytype" value="1" {if condition="$row.delivery_type == 1"} checked {/if}> 寄方付
                            &nbsp;&nbsp;&nbsp;
                            <input type="radio" name="delivery_type" class="deliverytype" value="2" {if condition="$row.delivery_type == 2"} checked {/if}> 收方付
                    </td>
                </tr>
            </tbody>
        </table>
    </div>

    <div class="form-group col-xs-12 col-sm-4 citiesaddress" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">省市区:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative' id="native">
                姓名:<input id="edit_name"  class="form-control" type="text" name="edit_name" value="">
                电话:<input id="edit_phone"  class="form-control" type="number" data-rule-mobile="[/^1[3-9]\d{9}$/, '请填写有效的手机号' " name="edit_phone" value="">
                请选择省|市|区<input id="c-native_place" class="form-control" data-toggle="city-picker" placeholder="请选择省/市/区" data-level="area" name="row[accept_native_place]" type="text" value="">
                详细地址:<input id="edit_address"  class="form-control" type="text" name="edit_address" value="">
                <span id="id" style="display:none;">{$row.id}</span>
            </div>
        </div>
        <button id="addressId" >提交</button>
    </div>

    <div class="form-group col-sm-12 col-sm-8 szaddress" style="display: none">

        <div class="col-xs-12 col-sm-8">
            <h1>选择地址信息:</h1>
            <select id="c-address" class="form-control selectpicker" name="address">
                {foreach name="deliveryaddress" item="vo"}
                    <option value="{$vo.id}"{in name="key" value="$vo.id"}selected{/in}>{$vo.province} {$vo.city} {$vo.area} {$vo.address}
                </option>
                {/foreach}
            </select>

            <h1>添加|修改地址信息:</h1>
            <input id="status" class="form-control" type="text" name="status" value="1" style="display: none;">
                发件人公司:<input id="sh_company"  class="form-control" type="text" name="sh_company" value="">
                发件人姓名:<input id="sh_name"  class="form-control" type="text" name="sh_name" value="">
                发件人电话:<input id="sh_phone"  class="form-control" type="number" name="sh_phone" value="">
            <form id="cxselectform" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST"
                  action="">
                省市区:<input id="sh_native" class="form-control" data-toggle="city-picker" placeholder="请选择省/市/区" data-level="area" name="row[accept_native_place]" type="text" value="">
                </form>
                详细地址:<input id="sh_address"  class="form-control" type="text" name="sh_address" value="">
            <button id="upfhaddress">提交</button>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style="text-align: center">
            <button type="button" class="btn btn-default btn-embossed layer-close">{:__('关闭')}</button>
        </div>
    </div>
